<% if (!user) { %>
<div class="hero-unit">
<h1>欢迎来到Microblog</h1>
<p>Microblog 是一个基于Node.js 的微博系统。</p>
<p> 
<a class="btn btn-primary btn-large" href="/login">登录</a>
<a class="btn btn-large" href="/reg">立即注册</a>
</p> 
</div>
 <% }else { %>
  <form method="post" action="/post" class="well form-inline center" style="text-align:center;">
    <input type="text" class="span8" name="post">
    <button type="submit" class="btn btn-success"><i class="icon-comment icon-white"></i> 发炎</button>
  </form>
<% } %>
